2 examples for git reset

{{ score }}
  # make your current branch point to HEAD, throws away all uncommitted changes
git reset --hard HEAD
        
{{ score }}
  # Undoes your most recent commit
git reset HEAD~1